package com.bx.demo.web.api;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author J
 */
@RestController
@RequestMapping("api")
public class Api {

    @NacosValue("${spring.application.name}")
    private String applicationName;

    @GetMapping(path = "/getStr")
    public String echo() {
        return "Hello Nacos Provider " + applicationName;
    }
}
